<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Trolley</title>

    <!-- Google Font: Source Sans Pro -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
    <!-- Font Awesome Icons -->
    <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css"
          integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous"/>
    <!-- Theme style -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/admin-lte@3.1/dist/css/adminlte.min.css">
    <link href="static/img/trolley.png" rel="icon">
    <script>
      var data = {{ data|tojson }};

    </script>
    <script src="static/chart.min.js"></script>
</head>

<body class="hold-transition dark-mode sidebar-mini layout-fixed layout-navbar-fixed layout-footer-fixed">
<div class="wrapper">

    <!-- Navbar -->
    <nav class="main-header navbar navbar-expand navbar-dark">
        <!-- Left navbar links -->
        <ul class="navbar-nav">
            <li class="nav-item">
                <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
            </li>
            <li class="nav-item d-none d-sm-inline-block">
                <a href="index.html" class="nav-link">Home</a>
            </li>
            </li>
        </ul>

        <!-- Right navbar links -->
        <ul class="navbar-nav ml-auto">
            <!-- Navbar Search -->
            <li class="nav-item">
                <a class="nav-link" data-widget="navbar-search" href="#" role="button">
                    <i class="fas fa-search"></i>
                </a>
                <div class="navbar-search-block">
                    <form class="form-inline">
                        <div class="input-group input-group-sm">
                            <input class="form-control form-control-navbar" type="search"
                                   placeholder="Search for your product"
                                   aria-label="Search">
                            <div class="input-group-append">
                                <button class="btn btn-navbar" type="submit">
                                    <i class="fas fa-search"></i>
                                </button>
                                <button class="btn btn-navbar" type="button" data-widget="navbar-search">
                                    <i class="fas fa-times"></i>
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </li>
        </ul>
    </nav>
    <!-- /.navbar -->

    <!-- Main Sidebar Container -->
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <!-- Brand Logo -->
        <a href="#" class="brand-link">
            <img src="static/img/trolley.png" alt="Trolley Logo" class="brand-image  elevation-2"
                 style="opacity: .99">
            <span class="brand-text font-weight-light">Trolley</span>
        </a>

        <!-- Sidebar -->
        <div class="sidebar">
            <!-- Sidebar user panel (optional) -->
            <div class="user-panel mt-3 pb-3 mb-3 d-flex">
                <div class="image">
                    <img src="data:image/png;base64,{{image}}" class="img-circle elevation-2" alt="User Image"
                         id="profilePicURL">
                </div>
                <div class="info">
                    <a href="#" class="d-block" id="userNameLabel"></a>
                </div>
            </div>

            <!-- SidebarSearch Form -->
            <div class="form-inline">
                <div class="input-group" data-widget="sidebar-search">
                    <input class="form-control form-control-sidebar" type="search" placeholder="Search"
                           aria-label="Search">
                    <div class="input-group-append">
                        <button class="btn btn-sidebar">
                            <i class="fas fa-search fa-fw"></i>
                        </button>
                    </div>
                </div>
            </div>

            <!-- Sidebar Menu -->
            <nav class="mt-2">
                <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu"
                    data-accordion="false">
                    <li class="nav-item" id="build-clusters-div" style="display: none;">
                        <a href="#" class="nav-link">
                            <i class="fad fa-cubes"></i>
                            <p>
                                Build Clusters
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview" style="display: none;">
                            <li class="nav-item" id="build-aks-clusters-div">
                                <a href="build-aks-clusters" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>AKS Clusters</p>
                                </a>
                            </li>
                            <li class="nav-item" id="build-eks-clusters-div">
                                <a href="build-eks-clusters" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>EKS Clusters</p>
                                </a>
                            </li>
                            <li class="nav-item" id="build-gke-clusters-div" >
                                <a href="build-gke-clusters" class="nav-link" >
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>GKE Clusters</p>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="manage-clusters-div">
                        <a href="#" class="nav-link">
                            <i class="fad fa-wrench"></i>
                            <p>
                                Clusters Management
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview" style="display: none;">
                            <li class="nav-item" id="manage-aks-clusters-div">
                                <a href="manage-aks-clusters" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>AKS Clusters</p>
                                </a>
                            </li>
                            <li class="nav-item" id="manage-eks-clusters-div">
                                <a href="manage-eks-clusters" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>EKS Clusters</p>
                                </a>
                            </li>
                            <li class="nav-item" id="manage-gke-clusters-div" >
                                <a href="manage-gke-clusters" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>GKE Clusters</p>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="manage-vms-div">
                        <a href="#" class="nav-link">
                            <i class="far fa-server"></i>
                            <p>
                                VMs Management
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview">
                            <li class="nav-item" id="manage-az-vm-instances-div">
                                <a href="manage-az-vm-instances" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>AZ VM Instances</p>
                                </a>
                            </li>
                            <li class="nav-item" id="manage-aws-ec2-instances-div">
                                <a href="manage-aws-ec2-instances" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>AWS EC2 Instances</p>
                                </a>
                            </li>
                            <li class="nav-item" id="manage-gcp-vm-instances-div">
                                <a href="manage-gcp-vm-instances" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>GCP VM Instances</p>
                                </a>
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="users-div" style="display: none;">
                        <a href="#" class="nav-link">
                            <i class="fa fa-user"></i>
                            <p>
                                Users
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview" style="display: none;">
                            <li class="nav-item">
                                <a href="manage-users" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>Users Management</p>
                                </a>
                            </li>
                            <li class="nav-item">
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="teams-div" style="display: none;">
                        <a href="#" class="nav-link">
                            <i class="fa fa-users"></i>
                            <p>
                                Teams
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview" style="display: none;">
                            <li class="nav-item">
                                <a href="manage-teams" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>Teams Management</p>
                                </a>
                            </li>
                            <li class="nav-item">
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="clients-div" style="display: none;">
                        <a href="#" class="nav-link">
                            <i class="fa fa-building"></i>
                            <p>
                                Clients
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview" style="display: none;">
                            <li class="nav-item">
                                <a href="manage-clients" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>Clients Management</p>
                                </a>
                            </li>
                            <li class="nav-item">
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="dashboards-div" style="display: none;">
                        <a href="#" class="nav-link">
                            <i class="fa fa-tachometer"></i>
                            <p>
                                Billing Dashboards
                                <i class="fas fa-angle-left right"></i>
                            </p>
                        </a>
                        <ul class="nav nav-treeview" style="display: none;">
                            <li class="nav-item" id="products-div">
                                <a href="products-dashboards" class="nav-link">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>Products</p>
                                </a>
                            </li>
                            <li class="nav-item" id="events-div">
                                <a href="events-dashboards" class="nav-link active">
                                    <i class="far fa-circle nav-icon"></i>
                                    <p>Events</p>
                                </a>
                            </li>
                            <li class="nav-item">
                            </li>
                        </ul>
                    </li>
                    <li class="nav-item" id="settings-div" style="display: none;">
                        <a href="manage-settings" class="nav-link">
                            <i class="fa fa-cog" aria-hidden="true"></i>
                            <p>
                                Settings
                            </p>
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="logout" class="nav-link">
                            <i class="nav-icon far fa-sign-out"></i>
                            <p>
                                Log out
                            </p>
                        </a>
                    </li>
                </ul>
            </nav>
            <!-- /.sidebar-menu -->
        </div>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content">
            <div class="container-fluid">
                <div class="col-sm-3">
                    <div class="form-group">
                        <label>Select your product</label>
                        <select class="form-control">
                            <option>Hummus SDK</option>
                            <option>Mashawshe XP</option>
                            <option>Halva API</option>
                            <option>Tahini Auth</option>
                            <option>Tabooleh Flow</option>
                            <option>Kebab IO</option>
                        </select>
                    </div>
                </div>

                <h5 class="mt-4 mb-2">Companies Usage</h5>
                <div class="box box-danger">
                    <div class="col-sm-6">
                        <div class="box-body">
                            <div class="chart-responsive">
                                <canvas id="myChart"></canvas>
                            </div>
                        </div>
                    </div>
                </div>

                <h5 class="mt-4 mb-2">Resources Budget</h5>
                <div class="row">
                    <div class="col-md-3 col-sm-6 col-12">
                        <div class="info-box bg-gradient-info">
                            <span class="info-box-icon"><i class="far fa-desktop"></i></span>
                            <i class="fa-solid fa-computer-classic"></i>
                            <div class="info-box-content">
                                <span class="info-box-text">Compute</span>
                                <span class="info-box-number">$40,415</span>
                                <div class="progress">
                                    <div class="progress-bar" style="width: 45%"></div>
                                </div>
                                <span class="progress-description"> 45% Increase in 30 Days </span>
                            </div>

                        </div>

                    </div>

                    <div class="col-md-3 col-sm-6 col-12">
                        <div class="info-box bg-gradient-success">
                            <span class="info-box-icon"><i class="far fa-wifi"></i></span>
                            <div class="info-box-content">
                                <span class="info-box-text">Networking</span>
                                <span class="info-box-number">$15,680</span>
                                <div class="progress">
                                    <div class="progress-bar" style="width: 70%"></div>
                                </div>
                                <span class="progress-description"> 70% Increase in 30 Days </span>
                            </div>

                        </div>

                    </div>

                    <div class="col-md-3 col-sm-6 col-12">
                        <div class="info-box bg-gradient-warning">
                            <span class="info-box-icon"><i class="far fa-cloud"></i></span>
                            <div class="info-box-content">
                                <span class="info-box-text">Storage</span>
                                <span class="info-box-number">$25,410</span>
                                <div class="progress">
                                    <div class="progress-bar" style="width: 16%"></div>
                                </div>
                                <span class="progress-description"> 16% Increase in 30 Days </span>
                            </div>

                        </div>

                    </div>

                    <div class="col-md-3 col-sm-6 col-12">
                        <div class="info-box bg-gradient-danger">
                            <span class="info-box-icon"><i class="far fa-server"></i></span>
                            <div class="info-box-content">
                                <span class="info-box-text">Serverless</span>
                                <span class="info-box-number">$33,544</span>
                                <div class="progress">
                                    <div class="progress-bar" style="width: 81%"></div>
                                </div>
                                <span class="progress-description"> 81% Increase in 30 Days </span>
                            </div>

                        </div>

                    </div>

                </div>


                <h5 class="mb-2 mt-4">Resources Listing</h5>
                <div class="row">
                    <div class="col-lg-3 col-6">

                        <div class="small-box bg-info">
                            <div class="inner">
                                <h3>150</h3>
                                <p>Compute</p>
                            </div>
                            <div class="icon">
                                <i class="fas fa-desktop"></i>
                            </div>
                            <a href="#" class="small-box-footer">
                                More info <i class="fas fa-arrow-circle-right"></i>
                            </a>
                        </div>
                    </div>

                    <div class="col-lg-3 col-6">

                        <div class="small-box bg-success">
                            <div class="inner">
                                <h3>53<sup style="font-size: 20px">%</sup></h3>
                                <p>Networking</p>
                            </div>
                            <div class="icon">
                                <i class="fas fa-wifi"></i>
                            </div>
                            <a href="#" class="small-box-footer">
                                More info <i class="fas fa-arrow-circle-right"></i>
                            </a>
                        </div>
                    </div>

                    <div class="col-lg-3 col-6">

                        <div class="small-box bg-warning">
                            <div class="inner">
                                <h3>44</h3>
                                <p>Storage</p>
                            </div>
                            <div class="icon">
                                <i class="fas fa-cloud"></i>
                            </div>
                            <a href="#" class="small-box-footer">
                                More info <i class="fas fa-arrow-circle-right"></i>
                            </a>
                        </div>
                    </div>

                    <div class="col-lg-3 col-6">

                        <div class="small-box bg-danger">
                            <div class="inner">
                                <h3>65</h3>
                                <p>Serverless</p>
                            </div>
                            <div class="icon">
                                <i class="fas fa-server"></i>
                            </div>
                            <a href="#" class="small-box-footer">
                                More info <i class="fas fa-arrow-circle-right"></i>
                            </a>
                        </div>
                    </div>


                </div>


            </div>
        </section>
    </div>

</div>

</div>
</section>

</div>
<!-- /.content-header -->
</div>
<aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->

<!-- Main Footer -->
<footer class="main-footer">
    <strong>Copyright &copy; 2022-2023 <a href="https://trolley.io">Trolley</a></strong>
    All rights reserved.
    <div class="float-right d-none d-sm-inline-block">
        <b>Version</b> {{ data.version }}
    </div>
</footer>
</div>
<!-- ./wrapper -->

<!-- REQUIRED SCRIPTS -->
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="{{url_for('static', filename='script.js')}}"></script>
<!-- Bootstrap 4 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js"
        integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
        crossorigin="anonymous"></script>
<!-- AdminLTE App -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/admin-lte/3.1.0/js/adminlte.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@10"></script>
<script src="static/chart.min.js"></script>
<script>
  const labels = [
    'January',
    'February',
    'March',
    'April',
    'May',
    'June',
    'July',
    'August',
    'September',
    'October',
    'November',
    'December'
  ];

  const dash_data = {
    labels: labels,
    datasets: [{
      label: 'Cost in $',
      backgroundColor: 'rgb(255, 99, 132)',
      borderColor: 'rgb(255, 99, 132)',
      data: ['20234', '15234', '55548', '52986', '42231', '40959', '45636', '39825', '32020', '67659', '84956', '95897'],
      backgroundColor : ['#f56954', '#00a65a', '#f39c12', '#00c0ef', '#3c8dbc', '#d2d6de'],
    }]

  };

    const config = {
      type: 'line',
      data: dash_data,
      options: {
        plugins: {
          legend: {
            labels: {
              color: 'white',
              font: {
                size: 18,
              }
            }
          }
        }
      }
    };




</script>
<script>
  const myChart = new Chart(
    document.getElementById('myChart'),
    config
  );




</script>
</body>
</html>

